function residual = static_resid(T, y, x, params, T_flag)
% function residual = static_resid(T, y, x, params, T_flag)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%                                              to evaluate the model
%   T_flag    boolean                 boolean  flag saying whether or not to calculate temporary terms
%
% Output:
%   residual
%

if T_flag
    T = Dynamic_GFT_exponents.static_resid_tt(T, y, x, params);
end
residual = zeros(204, 1);
lhs = exp(y(4));
rhs = exp(y(7))+exp(y(11))+exp(y(161))+exp(y(166))+exp(y(171));
residual(1) = lhs - rhs;
lhs = exp(y(31));
rhs = exp(y(34))+exp(y(38))+exp(y(176))+exp(y(181))+exp(y(186));
residual(2) = lhs - rhs;
lhs = exp(y(58));
rhs = exp(y(61))+exp(y(65))+exp(y(191))+exp(y(196))+exp(y(201));
residual(3) = lhs - rhs;
lhs = y(1);
rhs = 0.25*params(9)^params(7);
residual(4) = lhs - rhs;
lhs = 1+params(6)*(exp(y(4))*y(2)-params(10));
rhs = T(1);
residual(5) = lhs - rhs;
lhs = y(28);
rhs = 0.25*params(19)^params(7);
residual(6) = lhs - rhs;
lhs = 1+params(6)*(exp(y(31))*y(29)-params(20));
rhs = T(2);
residual(7) = lhs - rhs;
lhs = y(55);
rhs = 0.25*params(29)^params(7);
residual(8) = lhs - rhs;
lhs = 1+params(6)*(exp(y(58))*y(56)-params(30));
rhs = T(3);
residual(9) = lhs - rhs;
residual(10) = exp(y(58))*y(56)+exp(y(4))*y(2)+exp(y(31))*y(29);
lhs = T(5);
rhs = T(9)+T(13)+T(17);
residual(11) = lhs - rhs;
lhs = T(18);
rhs = T(19)+T(20)+T(21);
residual(12) = lhs - rhs;
lhs = T(22);
rhs = T(23)+T(24)+T(25);
residual(13) = lhs - rhs;
lhs = T(26);
rhs = T(27)+T(28)+T(29);
residual(14) = lhs - rhs;
lhs = T(30);
rhs = T(31)+T(32)+T(33);
residual(15) = lhs - rhs;
lhs = T(34);
rhs = T(35)+T(36)+T(37);
residual(16) = lhs - rhs;
lhs = exp(y(14));
rhs = T(38)*T(40);
residual(17) = lhs - rhs;
lhs = exp(y(41));
rhs = T(41)*T(43);
residual(18) = lhs - rhs;
lhs = exp(y(68));
rhs = T(44)*T(46);
residual(19) = lhs - rhs;
lhs = exp(y(91));
rhs = T(49)/T(5);
residual(20) = lhs - rhs;
lhs = exp(y(92));
rhs = T(51)/T(26);
residual(21) = lhs - rhs;
lhs = exp(y(99));
rhs = T(54)/T(5);
residual(22) = lhs - rhs;
lhs = exp(y(100));
rhs = T(56)/T(26);
residual(23) = lhs - rhs;
lhs = exp(y(107));
rhs = T(58)/T(5);
residual(24) = lhs - rhs;
lhs = exp(y(108));
rhs = T(59)/T(26);
residual(25) = lhs - rhs;
lhs = exp(y(115));
rhs = T(48)*T(60)/T(18);
residual(26) = lhs - rhs;
lhs = exp(y(116));
rhs = T(48)*T(61)/T(30);
residual(27) = lhs - rhs;
lhs = exp(y(123));
rhs = T(63)/T(18);
residual(28) = lhs - rhs;
lhs = exp(y(124));
rhs = T(65)/T(30);
residual(29) = lhs - rhs;
lhs = exp(y(131));
rhs = T(66)/T(18);
residual(30) = lhs - rhs;
lhs = exp(y(132));
rhs = T(67)/T(30);
residual(31) = lhs - rhs;
lhs = exp(y(139));
rhs = T(48)*T(68)/T(22);
residual(32) = lhs - rhs;
lhs = exp(y(140));
rhs = T(48)*T(69)/T(34);
residual(33) = lhs - rhs;
lhs = exp(y(147));
rhs = T(53)*T(70)/T(22);
residual(34) = lhs - rhs;
lhs = exp(y(148));
rhs = T(53)*T(71)/T(34);
residual(35) = lhs - rhs;
lhs = exp(y(155));
rhs = T(72)/T(22);
residual(36) = lhs - rhs;
lhs = exp(y(156));
rhs = T(73)/T(34);
residual(37) = lhs - rhs;
lhs = params(1)*exp(y(20))*params(16);
rhs = T(74)+T(75)+T(76);
residual(38) = lhs - rhs;
lhs = params(1)*exp(y(47))*params(26);
rhs = T(77)+T(78)+T(79);
residual(39) = lhs - rhs;
lhs = params(1)*params(36);
rhs = T(80)+T(81)+T(82);
residual(40) = lhs - rhs;
lhs = params(1)*exp(y(20))*params(15);
rhs = exp(y(14))*exp(y(92))*exp(y(6))+exp(y(41))*exp(y(116))*exp(y(33))+exp(y(68))*exp(y(140))*exp(y(60));
residual(41) = lhs - rhs;
lhs = params(1)*exp(y(47))*params(25);
rhs = exp(y(14))*exp(y(100))*exp(y(6))+exp(y(41))*exp(y(124))*exp(y(33))+exp(y(68))*exp(y(148))*exp(y(60));
residual(42) = lhs - rhs;
lhs = params(1)*params(35);
rhs = exp(y(14))*exp(y(108))*exp(y(6))+exp(y(41))*exp(y(132))*exp(y(33))+exp(y(68))*exp(y(156))*exp(y(60));
residual(43) = lhs - rhs;
lhs = exp(y(4));
rhs = exp(y(5));
residual(44) = lhs - rhs;
lhs = exp(y(31));
rhs = exp(y(32));
residual(45) = lhs - rhs;
lhs = exp(y(58));
rhs = exp(y(59));
residual(46) = lhs - rhs;
lhs = T(83);
rhs = exp(y(4))*exp(y(14))+exp(y(31))*exp(y(41))+exp(y(58))*exp(y(68));
residual(47) = lhs - rhs;
lhs = exp(y(17));
rhs = T(85)*params(12);
residual(48) = lhs - rhs;
lhs = exp(y(18));
rhs = params(16)*T(85);
residual(49) = lhs - rhs;
lhs = exp(y(19));
rhs = params(15)*T(85);
residual(50) = lhs - rhs;
lhs = exp(y(44));
rhs = T(86)*params(22);
residual(51) = lhs - rhs;
lhs = exp(y(45));
rhs = params(26)*T(86);
residual(52) = lhs - rhs;
lhs = exp(y(46));
rhs = params(25)*T(86);
residual(53) = lhs - rhs;
lhs = exp(y(71));
rhs = T(84)*params(32);
residual(54) = lhs - rhs;
lhs = exp(y(72));
rhs = params(36)*T(84);
residual(55) = lhs - rhs;
lhs = exp(y(73));
rhs = params(35)*T(84);
residual(56) = lhs - rhs;
lhs = exp(y(93));
rhs = exp(y(18))*(1-exp(y(88)))+exp(y(93))*T(87)*T(89);
residual(57) = lhs - rhs;
lhs = exp(y(94));
rhs = exp(y(18))*exp(y(88))+T(89)*T(87)*exp(y(94));
residual(58) = lhs - rhs;
lhs = exp(y(101));
rhs = exp(y(18))*(1-exp(y(96)))+T(89)*T(87)*exp(y(101));
residual(59) = lhs - rhs;
lhs = exp(y(102));
rhs = exp(y(18))*exp(y(96))+T(89)*T(87)*exp(y(102));
residual(60) = lhs - rhs;
lhs = exp(y(109));
rhs = exp(y(18))*(1-exp(y(104)))+T(89)*T(87)*exp(y(109));
residual(61) = lhs - rhs;
lhs = exp(y(110));
rhs = exp(y(18))*exp(y(104))+T(89)*T(87)*exp(y(110));
residual(62) = lhs - rhs;
lhs = exp(y(117));
rhs = exp(y(45))*(1-exp(y(112)))+T(87)*exp(y(117))*T(90);
residual(63) = lhs - rhs;
lhs = exp(y(118));
rhs = exp(y(45))*exp(y(112))+T(90)*T(87)*exp(y(118));
residual(64) = lhs - rhs;
lhs = exp(y(125));
rhs = exp(y(45))*(1-exp(y(120)))+T(90)*T(87)*exp(y(125));
residual(65) = lhs - rhs;
lhs = exp(y(126));
rhs = exp(y(45))*exp(y(120))+T(90)*T(87)*exp(y(126));
residual(66) = lhs - rhs;
lhs = exp(y(133));
rhs = exp(y(45))*(1-exp(y(128)))+T(90)*T(87)*exp(y(133));
residual(67) = lhs - rhs;
lhs = exp(y(134));
rhs = exp(y(45))*exp(y(128))+T(90)*T(87)*exp(y(134));
residual(68) = lhs - rhs;
lhs = exp(y(141));
rhs = exp(y(72))*(1-exp(y(136)))+T(87)*exp(y(141))*T(91);
residual(69) = lhs - rhs;
lhs = exp(y(142));
rhs = exp(y(72))*exp(y(136))+T(91)*T(87)*exp(y(142));
residual(70) = lhs - rhs;
lhs = exp(y(149));
rhs = exp(y(72))*(1-exp(y(144)))+T(91)*T(87)*exp(y(149));
residual(71) = lhs - rhs;
lhs = exp(y(150));
rhs = exp(y(72))*exp(y(144))+T(91)*T(87)*exp(y(150));
residual(72) = lhs - rhs;
lhs = exp(y(157));
rhs = exp(y(72))*(1-exp(y(152)))+T(91)*T(87)*exp(y(157));
residual(73) = lhs - rhs;
lhs = exp(y(158));
rhs = exp(y(72))*exp(y(152))+T(91)*T(87)*exp(y(158));
residual(74) = lhs - rhs;
lhs = exp(y(88));
rhs = y(1)*exp(x(3));
residual(75) = lhs - rhs;
lhs = exp(y(96));
rhs = y(1)*exp(x(6));
residual(76) = lhs - rhs;
lhs = exp(y(104));
rhs = y(1)*exp(x(9));
residual(77) = lhs - rhs;
lhs = exp(y(112));
rhs = y(28)*exp(x(12));
residual(78) = lhs - rhs;
lhs = exp(y(120));
rhs = y(28)*exp(x(15));
residual(79) = lhs - rhs;
lhs = exp(y(128));
rhs = y(28)*exp(x(18));
residual(80) = lhs - rhs;
lhs = exp(y(136));
rhs = y(55)*exp(x(21));
residual(81) = lhs - rhs;
lhs = exp(y(144));
rhs = y(55)*exp(x(24));
residual(82) = lhs - rhs;
lhs = exp(y(152));
rhs = 0.25*exp(x(27));
residual(83) = lhs - rhs;
lhs = exp(y(164));
rhs = params(41)*T(92)^params(4);
residual(84) = lhs - rhs;
lhs = exp(y(169));
rhs = params(45)*T(93)^params(4);
residual(85) = lhs - rhs;
lhs = exp(y(174));
rhs = params(49)*T(94)^params(4);
residual(86) = lhs - rhs;
lhs = exp(y(179));
rhs = params(53)*T(95)^params(4);
residual(87) = lhs - rhs;
lhs = exp(y(184));
rhs = params(57)*T(96)^params(4);
residual(88) = lhs - rhs;
lhs = exp(y(189));
rhs = params(61)*T(97)^params(4);
residual(89) = lhs - rhs;
lhs = exp(y(194));
rhs = params(65)*T(98)^params(4);
residual(90) = lhs - rhs;
lhs = exp(y(199));
rhs = params(69)*T(99)^params(4);
residual(91) = lhs - rhs;
lhs = exp(y(204));
rhs = params(73)*T(100)^params(4);
residual(92) = lhs - rhs;
lhs = exp(y(21));
rhs = exp(y(163))+T(101)+T(102);
residual(93) = lhs - rhs;
lhs = exp(y(48));
rhs = T(103)+exp(y(183))+T(104);
residual(94) = lhs - rhs;
lhs = exp(y(75));
rhs = T(105)+exp(y(203));
residual(95) = lhs - rhs;
lhs = exp(y(11));
rhs = T(106)*T(109);
residual(96) = lhs - rhs;
lhs = exp(y(38));
rhs = T(110)*T(111);
residual(97) = lhs - rhs;
lhs = exp(y(65));
rhs = T(112)*T(113);
residual(98) = lhs - rhs;
lhs = y(12);
rhs = T(115)*T(116);
residual(99) = lhs - rhs;
lhs = y(39);
rhs = T(118)*T(119);
residual(100) = lhs - rhs;
lhs = y(66);
rhs = T(121)*T(122);
residual(101) = lhs - rhs;
lhs = y(89);
rhs = T(123);
residual(102) = lhs - rhs;
lhs = y(97);
rhs = T(124);
residual(103) = lhs - rhs;
lhs = y(105);
rhs = T(125);
residual(104) = lhs - rhs;
lhs = y(113);
rhs = T(126);
residual(105) = lhs - rhs;
lhs = y(121);
rhs = T(127);
residual(106) = lhs - rhs;
lhs = y(129);
rhs = T(128);
residual(107) = lhs - rhs;
lhs = y(137);
rhs = T(129);
residual(108) = lhs - rhs;
lhs = y(145);
rhs = T(130);
residual(109) = lhs - rhs;
lhs = y(153);
rhs = T(131);
residual(110) = lhs - rhs;
lhs = exp(y(162));
rhs = T(134)+T(89)*T(87)*(exp(y(93))*exp(y(164))+exp(y(162))*(1-exp(y(164))));
residual(111) = lhs - rhs;
lhs = exp(y(163));
rhs = T(89)*T(87)*(exp(y(94))*exp(y(164))+exp(y(163))*(1-exp(y(164))));
residual(112) = lhs - rhs;
lhs = exp(y(167));
rhs = T(137)+T(89)*T(87)*(exp(y(101))*exp(y(169))+exp(y(167))*(1-exp(y(169))));
residual(113) = lhs - rhs;
lhs = exp(y(168));
rhs = T(89)*T(87)*(exp(y(102))*exp(y(169))+exp(y(168))*(1-exp(y(169))));
residual(114) = lhs - rhs;
lhs = exp(y(172));
rhs = T(140)+T(89)*T(87)*(exp(y(109))*exp(y(174))+exp(y(172))*(1-exp(y(174))));
residual(115) = lhs - rhs;
lhs = exp(y(173));
rhs = T(89)*T(87)*(exp(y(110))*exp(y(174))+exp(y(173))*(1-exp(y(174))));
residual(116) = lhs - rhs;
lhs = exp(y(177));
rhs = T(143)+T(90)*T(87)*(exp(y(117))*exp(y(179))+exp(y(177))*(1-exp(y(179))));
residual(117) = lhs - rhs;
lhs = exp(y(178));
rhs = T(90)*T(87)*(exp(y(118))*exp(y(179))+exp(y(178))*(1-exp(y(179))));
residual(118) = lhs - rhs;
lhs = exp(y(182));
rhs = T(146)+T(90)*T(87)*(exp(y(125))*exp(y(184))+exp(y(182))*(1-exp(y(184))));
residual(119) = lhs - rhs;
lhs = exp(y(183));
rhs = T(90)*T(87)*(exp(y(126))*exp(y(184))+exp(y(183))*(1-exp(y(184))));
residual(120) = lhs - rhs;
lhs = exp(y(187));
rhs = T(149)+T(90)*T(87)*(exp(y(133))*exp(y(189))+exp(y(187))*(1-exp(y(189))));
residual(121) = lhs - rhs;
lhs = exp(y(188));
rhs = T(90)*T(87)*(exp(y(134))*exp(y(189))+exp(y(188))*(1-exp(y(189))));
residual(122) = lhs - rhs;
lhs = exp(y(192));
rhs = T(152)+T(91)*T(87)*(exp(y(141))*exp(y(194))+exp(y(192))*(1-exp(y(194))));
residual(123) = lhs - rhs;
lhs = exp(y(193));
rhs = T(91)*T(87)*(exp(y(142))*exp(y(194))+exp(y(193))*(1-exp(y(194))));
residual(124) = lhs - rhs;
lhs = exp(y(197));
rhs = T(155)+T(91)*T(87)*(exp(y(149))*exp(y(199))+exp(y(197))*(1-exp(y(199))));
residual(125) = lhs - rhs;
lhs = exp(y(198));
rhs = T(91)*T(87)*(exp(y(150))*exp(y(199))+exp(y(198))*(1-exp(y(199))));
residual(126) = lhs - rhs;
lhs = exp(y(202));
rhs = T(158)+T(91)*T(87)*(exp(y(157))*exp(y(204))+exp(y(202))*(1-exp(y(204))));
residual(127) = lhs - rhs;
lhs = exp(y(203));
rhs = T(91)*T(87)*(exp(y(158))*exp(y(204))+exp(y(203))*(1-exp(y(204))));
residual(128) = lhs - rhs;
lhs = T(160);
rhs = T(89)*exp(y(164))*T(87)*params(4)*(exp(y(93))-exp(y(162)));
residual(129) = lhs - rhs;
lhs = T(162);
rhs = T(89)*exp(y(169))*T(87)*params(4)*(exp(y(101))-exp(y(167)));
residual(130) = lhs - rhs;
lhs = T(164);
rhs = T(89)*exp(y(174))*T(87)*params(4)*(exp(y(109))-exp(y(172)));
residual(131) = lhs - rhs;
lhs = T(166);
rhs = T(90)*exp(y(179))*T(87)*params(4)*(exp(y(117))-exp(y(177)));
residual(132) = lhs - rhs;
lhs = T(168);
rhs = T(90)*exp(y(184))*T(87)*params(4)*(exp(y(125))-exp(y(182)));
residual(133) = lhs - rhs;
lhs = T(170);
rhs = T(90)*exp(y(189))*T(87)*params(4)*(exp(y(133))-exp(y(187)));
residual(134) = lhs - rhs;
lhs = T(172);
rhs = T(91)*exp(y(194))*T(87)*params(4)*(exp(y(141))-exp(y(192)));
residual(135) = lhs - rhs;
lhs = T(174);
rhs = T(91)*exp(y(199))*T(87)*params(4)*(exp(y(149))-exp(y(197)));
residual(136) = lhs - rhs;
lhs = T(176);
rhs = T(91)*exp(y(204))*T(87)*params(4)*(exp(y(157))-exp(y(202)));
residual(137) = lhs - rhs;
lhs = T(7);
rhs = exp(y(106))+exp(y(90))+exp(y(98));
residual(138) = lhs - rhs;
lhs = T(11);
rhs = exp(y(130))+exp(y(114))+exp(y(122));
residual(139) = lhs - rhs;
lhs = T(15);
rhs = exp(y(154))+exp(y(138))+exp(y(146));
residual(140) = lhs - rhs;
lhs = y(13);
rhs = y(62)*1/T(4);
residual(141) = lhs - rhs;
lhs = exp(y(24));
rhs = T(7)*params(13);
residual(142) = lhs - rhs;
lhs = y(40);
rhs = y(62)*1/T(4);
residual(143) = lhs - rhs;
lhs = exp(y(51));
rhs = T(11)*params(23);
residual(144) = lhs - rhs;
lhs = y(67);
rhs = y(62)*1/T(4);
residual(145) = lhs - rhs;
lhs = exp(y(78));
rhs = T(15)*params(33);
residual(146) = lhs - rhs;
lhs = y(12);
rhs = y(62);
residual(147) = lhs - rhs;
lhs = y(39);
rhs = y(62);
residual(148) = lhs - rhs;
lhs = y(66);
rhs = y(62);
residual(149) = lhs - rhs;
lhs = y(8);
rhs = y(62);
residual(150) = lhs - rhs;
lhs = y(35);
rhs = y(62);
residual(151) = lhs - rhs;
lhs = y(62);
rhs = y(137)*exp(y(138))+y(145)*exp(y(146))+y(153)*exp(y(154));
residual(152) = lhs - rhs;
lhs = y(9);
rhs = y(8);
residual(153) = lhs - rhs;
lhs = y(10);
rhs = y(8);
residual(154) = lhs - rhs;
lhs = y(36);
rhs = y(35);
residual(155) = lhs - rhs;
lhs = y(37);
rhs = y(35);
residual(156) = lhs - rhs;
lhs = y(63);
rhs = y(62);
residual(157) = lhs - rhs;
lhs = y(64);
rhs = y(62);
residual(158) = lhs - rhs;
lhs = y(26);
rhs = T(88)-1;
residual(159) = lhs - rhs;
lhs = y(3);
rhs = T(88)-1;
residual(160) = lhs - rhs;
lhs = y(53);
rhs = T(88)-1;
residual(161) = lhs - rhs;
lhs = y(30);
rhs = T(88)-1;
residual(162) = lhs - rhs;
lhs = y(80);
rhs = T(88)-1;
residual(163) = lhs - rhs;
lhs = y(57);
rhs = T(88)-1;
residual(164) = lhs - rhs;
lhs = y(160);
rhs = T(88)-1;
residual(165) = lhs - rhs;
lhs = y(165);
rhs = T(88)-1;
residual(166) = lhs - rhs;
lhs = y(170);
rhs = T(88)-1;
residual(167) = lhs - rhs;
lhs = y(175);
rhs = T(88)-1;
residual(168) = lhs - rhs;
lhs = y(180);
rhs = T(88)-1;
residual(169) = lhs - rhs;
lhs = y(185);
rhs = T(88)-1;
residual(170) = lhs - rhs;
lhs = y(190);
rhs = T(88)-1;
residual(171) = lhs - rhs;
lhs = y(195);
rhs = T(88)-1;
residual(172) = lhs - rhs;
lhs = y(200);
rhs = T(88)-1;
residual(173) = lhs - rhs;
lhs = y(27);
rhs = T(88)-1;
residual(174) = lhs - rhs;
lhs = y(54);
rhs = T(88)-1;
residual(175) = lhs - rhs;
lhs = y(81);
rhs = T(88)-1;
residual(176) = lhs - rhs;
lhs = y(89);
rhs = y(62);
residual(177) = lhs - rhs;
lhs = y(97);
rhs = y(62);
residual(178) = lhs - rhs;
lhs = y(105);
rhs = y(62);
residual(179) = lhs - rhs;
lhs = y(113);
rhs = y(62);
residual(180) = lhs - rhs;
lhs = y(121);
rhs = y(62);
residual(181) = lhs - rhs;
lhs = y(129);
rhs = y(62);
residual(182) = lhs - rhs;
lhs = y(137);
rhs = y(62);
residual(183) = lhs - rhs;
lhs = y(145);
rhs = y(62);
residual(184) = lhs - rhs;
lhs = y(153);
rhs = y(62);
residual(185) = lhs - rhs;
lhs = exp(y(95));
rhs = exp(y(18))*exp(y(88))*exp(y(90))/T(7);
residual(186) = lhs - rhs;
lhs = exp(y(103));
rhs = exp(y(18))*exp(y(96))*exp(y(98))/T(7);
residual(187) = lhs - rhs;
lhs = exp(y(111));
rhs = exp(y(18))*exp(y(104))*exp(y(106))/T(7);
residual(188) = lhs - rhs;
lhs = exp(y(119));
rhs = exp(y(45))*exp(y(112))*exp(y(114))/T(11);
residual(189) = lhs - rhs;
lhs = exp(y(127));
rhs = exp(y(45))*exp(y(120))*exp(y(122))/T(11);
residual(190) = lhs - rhs;
lhs = exp(y(135));
rhs = exp(y(45))*exp(y(128))*exp(y(130))/T(11);
residual(191) = lhs - rhs;
lhs = exp(y(143));
rhs = exp(y(72))*exp(y(136))*exp(y(138))/T(15);
residual(192) = lhs - rhs;
lhs = exp(y(151));
rhs = exp(y(72))*exp(y(144))*exp(y(146))/T(15);
residual(193) = lhs - rhs;
lhs = exp(y(159));
rhs = exp(y(72))*exp(y(152))*exp(y(154))/T(15);
residual(194) = lhs - rhs;
lhs = exp(y(82));
rhs = exp(y(143))+T(178)+T(179);
residual(195) = lhs - rhs;
lhs = exp(y(83));
rhs = exp(y(151))+T(181)+T(182);
residual(196) = lhs - rhs;
lhs = exp(y(84));
rhs = exp(y(111))+T(181)+T(183);
residual(197) = lhs - rhs;
lhs = exp(y(85));
rhs = exp(y(135))+T(178)+T(184);
residual(198) = lhs - rhs;
lhs = exp(y(84));
rhs = exp(y(82))+T(185)-exp(y(4))*y(2);
residual(199) = lhs - rhs;
lhs = exp(y(85));
rhs = exp(y(83))+T(186)-exp(y(31))*y(29);
residual(200) = lhs - rhs;
residual(201) = y(74);
lhs = exp(y(25));
rhs = exp(y(4));
residual(202) = lhs - rhs;
lhs = exp(y(52));
rhs = exp(y(31));
residual(203) = lhs - rhs;
lhs = exp(y(79));
rhs = exp(y(58));
residual(204) = lhs - rhs;
if ~isreal(residual)
  residual = real(residual)+imag(residual).^2;
end
end
